package com.appleyk.security.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>越努力，越幸运</p>
 * 相当于applicationContext.xml,配置bean
 * @author appleyk
 * @version V.0.1.1
 * @blob https://blog.csdn.net/appleyk
 * @date created on  7:18 下午 2021/1/3
 */
@Configuration
@ComponentScan(basePackages = {"com.appleyk.security.springmvc"},
excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,
value = {Controller.class, RestController.class}) })
// 排除controller，扫描controller的另有其配置
public class ApplicationConfig {
    //注入数据库连接池、事务管理器、业务bean等所在的包
}
